﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Bibilioteca.Models
{
    public class Socio
    {
        public int Id { get; set; }

        [StringLength(25, MinimumLength = 2)]
        [Required]
        public string Nombre { get; set; }

        [StringLength(25, MinimumLength = 2)]
        [Required]
        public string Apellido { get; set; }

        [DataType(DataType.EmailAddress)]
        [Required]
        public string Email { get; set; }
        
        public string Domicilio { get; set; }

        public bool Habilitado { get; set; }

        public Cuenta cuenta { get; set; }
        
        public Socio(   int _id, string _nombre, string _apellido,
                        string _email, string _domicilio = "", bool habil = false, Cuenta cu = null
                     )
        {
            Id = _id;
            Nombre = _nombre;
            Apellido = _apellido;
            Domicilio = _domicilio;
            Email = _email;
            Habilitado = habil;
            cuenta = cu;
        }


    }
}